home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / flash_ch.swf / scripts / frame_10 / DoAction.as
Text File  |  2008-11-12  |  297b  |  17 lines

  1. undo_move(allPossibleMoves[index],side,capturedPiece);
  2. if(bestScore < moveScore)
  3. {
  4.    bestScore = moveScore;
  5.    bestMove = allPossibleMoves[index];
  6. }
  7. if(alpha < bestScore)
  8. {
  9.    alpha = bestScore;
  10. }
  11. if(alpha >= beta)
  12. {
  13.    gotoAndPlay(11);
  14. }
  15. index++;
  16. gotoAndPlay(_currentframe - 1);
  17.